import Vue from 'vue'
let that = Vue.prototype
export const banner = () => that.https.get('banner')
export const homeList = () => that.https.get('recommend/appIndex')
export const classify = (a) => that.https.get('courseBasis', a)
export const details = (a) => that.https.get('courseInfo/basis_id=' + a)
export const getCode = (a) => that.https.post('smsCode', a)
export const goLogin = (a) => that.https.post('login', a)
export const upMsg = (a) => that.https.put('user', a)
export const daGang = (a) => that.https.post('courseChapter', a)
export const pingLun = (a) => that.https.post('courseComment', a)
export const getLike = (a) => that.https.post('collect', a)
export const delLike = (a) => that.https.put('collect/cancel/' + a + '/1')
export const getTeach = (a) => that.https.get('teacher/' + a)
export const getTeachJs = (a) => that.https.get('teacher/info/' + a)
export const teacherMainCourse = (a) => that.https.post('teacher/mainCourse', a)
export const teacherComment = (a) => that.https.post('teacher/comment', a)
export const getLikeList = (a) => that.https.get('collect', a)
export const teachgoCom = (a) => that.https.get('teacher/collect/' + a)
export const oneFor = (a) => that.https.get('otoCourse', a)
export const getOrder = (a) => that.https.post('order/downOrder', a)
export const getMyOrder = (a) => that.https.post('myOrder', a)
export const myStudy = () => that.https.get('myStudy' + '/2')